<div>
    <form class="layui-form" action="">
        <div class="layui-form-item">
            <label class="layui-form-label" style="background-color: #f2f2f2">用户名:</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" autocomplete="off" name="username" placeholder="用户名"
                       lay-verify="username">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" style="background-color: #f2f2f2">邮箱:</label>
            <div class="layui-input-inline">
                <input type="email" class="layui-input" name="email" placeholder="邮箱" autocomplete="off"
                       lay-verify="email" id="register-email">
            </div>
        </div>

        <div class="layui-form-item" id="verify_code">
            <label class="layui-form-label" style="background-color: #f2f2f2">验证码:</label>
            <div class="layui-input-inline">
                <input type="verify_code" class="layui-input" name="verify_code" placeholder="" autocomplete="off"
                       lay-verify="verify" maxlength="6">
            </div>
            <label class="layui-form-label" style="font-size: small;text-align: left;width:auto;">
                <span href id="sync_verify_code" style="color: #01AAED;">获取验证码</span>
                <div id="timer"></div>
            </label>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label" style="background-color: #f2f2f2">密码:</label>
            <div class="layui-input-inline">
                <input type="password" class="layui-input" name="password" placeholder="密码" autocomplete="off"
                       lay-verify="pass">
            </div>
        </div>

        <p style="color: red" id="reg_message"></p>
        <button class="layui-btn" lay-submit lay-filter="register">立即注册</button>
        <button type="reset" class="layui-btn layui-btn-primary">清空</button>

    </form>
</div>

<p>提示：验证码邮件可能被某些邮箱识别为垃圾邮件</p>